using System;
using System.Collections.Generic;
using System.Text;
using Microformats.Interfaces;
using System.IO;
using Microformats.Entities;
using Microformats.ConfigurationSections;
using System.Text.RegularExpressions;
using Sgml;
using System.Xml;

namespace Microformats.Readers
{
    /// <summary>
    /// A type of microformat reader that uses a stream as its data source.
    /// 
    /// This saves loading the all the XML document in to memory.
    /// </summary>
    internal sealed class MicroformatStreamReader : MicroformatXmlReader
    {
        /// <summary>
        /// Creates an instance of the MicroformatStreamReader.
        /// </summary>
        /// <param name="stream">The input stream that is being consi=umed</param>
        /// <param name="currentReader"></param>
        public MicroformatStreamReader(Stream stream, MicroformatReader currentReader)
            :base(new XmlTextReader(stream), currentReader)
        {
        }

        public MicroformatStreamReader(TextReader textReader, MicroformatReader currentReader)
            : base(new XmlTextReader(textReader), currentReader)
        {
        }
    }
}
